home *** CD-ROM | disk | FTP | other *** search
/ Magnum One / Magnum One (Mid-American Digital) (Disc Manufacturing).iso / d12 / ptv1n6.arc / CPUTEST.C < prev    next >
Text File  |  1991-01-21  |  446b  |  24 lines

  1.  
  2. /* test.c: Tests the cputype() function.  Prints message
  3.  * telling the results.
  4.  * Copyright (C) 1990 Nicholas Wilt
  5.  */
  6.  
  7. #include <stdio.h>
  8.  
  9. main()
  10. {
  11.   printf("cputype detects an ");
  12.   switch (cputype()) {
  13.     case 0:
  14.       printf("8086.  I sympathize.\n");
  15.       break;
  16.     case 1:
  17.       printf("80286.  You\'re getting there!\n");
  18.       break;
  19.     case 2:
  20.       printf("80386.  You\'re cookin\'!");
  21.       break;
  22.   }
  23. }
  24.